git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| <?php | |
| /** | |
| * Theme_menu_tree doesn't provide any context information | |
| * THIS SUCKS | |
| * But you can use hook_block_view_alter to change the theme wrapper | |
| * OUF! | |
| */ | |
| function MYTHEME_menu_tree(&$variables) { |
| /** | |
| * Global Reset of all HTML Elements | |
| * | |
| * Resetting all of our HTML Elements ensures a smoother | |
| * visual transition between browsers. If you don't believe me, | |
| * try temporarily commenting out this block of code, then go | |
| * and look at Mozilla versus Safari, both good browsers with | |
| * a good implementation of CSS. The thing is, all browser CSS | |
| * defaults are different and at the end of the day if visual | |
| * consistency is what we're shooting for, then we need to |
| <?php | |
| /** | |
| * truncate a string provided by the maximum limit without breaking a word | |
| * @param string $str | |
| * @param integer $maxlen | |
| * @return string | |
| */ | |
| function truncateStringWords($str, $maxlen) { | |
| if (strlen($str) <= $maxlen) return $str; |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| <?php | |
| // ... | |
| use Symfony\Component\HttpFoundation\Response; | |
| // Then later on (inside your controller's class), you have a function used | |
| // for the route_name (on a hook_menu() item in your .module file), this | |
| // function can return a JSON response... |
| #Steps taken to install Big Blue Button in CentOS 6 | |
| # we'll work mostly from the /tmp/ directory: | |
| cd /tmp | |
| # install MySQL server | |
| yum install -y mysql-server | |
| service mysqld start | |
| chkconfig mysqld on |
| server { | |
| listen 80; | |
| server_name www.example.com; | |
| rewrite ^ $scheme://example.com$request_uri?; | |
| } | |
| server { | |
| listen 80; | |
| server_name example.com; | |